﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/css/ljsheng/global.css" rel="stylesheet" />
    <title>后台头部</title>
</head>
<body>
    <div class="head">
        <div class="hcon">
            <p>
                <a target="list" href="/ljsheng/cplist">套餐总数<br /><em id="sj"></em></a>
                <a target="list" href="/ljsheng/hylist">经销商总数<br /><em id="hy"></em></a>
                <a target="list" href="/ljsheng/ddlist">订单总数<br /><em id="dd"></em></a>
            </p>
            <tt><a href="/ljsheng/hylist" target="list">后台首页</a>|<a href="/shop/index" target="_blank">前台首页</a>|<a href="/logout.aspx?lx=0" target="_top">您好,@(LJSheng.Common.LCookie.Getljsheng("account")) 安全退出</a></tt>
        </div>
    </div>
    <audio id="audio-notification"><source src="/images/msg.mp3" type="audio/mpeg" /></audio>
    <script src="~/js/jquery.js"></script>
    <script>
        function GetDD() {
            $.ajax({
                type: "post",
                url: "/ljsheng/tb",
                data: "",
                cache: false,
                dataType: "json",
                timeout: 5000,
                //出错处理
                error: function () {
                    $("#msg").html("请刷新页面");
                },
                beforeSend: function () { },
                success: function (data) {
                    if (data.result == 200) {
                        if (data.data.txtx != 0) {
                            $("#msg").addClass("msg");
                            $("#audio-notification").get(0).play();//播放提示音
                        }
                        $("#hy").html(data.data.hy);
                        //$("#hyzr").html(data.data.hyzr);
                        //$("#hyjr").html(data.data.hyjr);
                        $("#dd").html(data.data.dd);
                        //$("#ddzr").html(data.data.ddzr);
                        //$("#ddjr").html(data.data.ddjr);
                        $("#sj").html(data.data.sj);
                    }
                    else {
                        $("#hy").html("0");
                        $("#dd").html("0");
                        $("#sj").html("0");
                    }
                }
            });
            setTimeout(function () { GetDD(); }, 198888);
        }
        setTimeout(function () { GetDD(); }, 100);
    </script>
</body>
</html>
